<template>
    <view style="padding: 20rpx 30rpx">
        <rich-text :nodes="nodes"></rich-text>
    </view>
</template>

<script>
import cardlist from '@/ymq_canyino2o/dist/cardlist/index';
import gettel from '@/ymq_canyino2o/dist/gettel/index';
var app = getApp();
export default {
    components: {
        cardlist,
        gettel
    },
    data() {
        return {
            nodes: ''
        };
    },
    onLoad: function (t) {
        console.log(t);
        app.globalData.setNavigationBarColor(this);
        uni.setNavigationBarTitle({
            title: t.title
        });
        if ('会员特权说明' == t.title) {
            this.setData({
                nodes: getApp().globalData.xtxx.hy_details.replace(/\<img/gi, '<img style="width:100%;height:auto" ')
            });
        }
        if ('充值服务协议' == t.title) {
            this.setData({
                nodes: getApp().globalData.xtxx.cz_notice.replace(/\<img/gi, '<img style="width:100%;height:auto" ')
            });
        }
    },
    onReady: function () {},
    onShow: function () {},
    onHide: function () {},
    onUnload: function () {},
    onPullDownRefresh: function () {},
    onReachBottom: function () {},
    onShareAppMessage: function () {},
    methods: {}
};
</script>
<style>
@import './xydtl.css';
</style>
